package yibao.youyun.com.yibao.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by woodnaonly on 2015/11/24.
 */
public class FullListView extends ListView
{
    public FullListView(Context context)
    {
        super(context);
    }

    public FullListView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
    }

    public FullListView(Context context, AttributeSet attrs, int defStyleAttr)
    {
        super(context, attrs, defStyleAttr);
    }

    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
        int mExpandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, mExpandSpec);
    }
}
